package com.fitns.user.exception;

public enum OrganMsgCode implements MsgCode {

    ORGAN_PARENTID_IS_NULL(1100001,"机构上级节点不能为空"),
    ORGAN_TYPE_IS_NULL(1100002,"机构类型不能为空"),
    ORGAN_NAME_IS_NULL(1100003,"机构名称不能为空"),
    ORGAN_CONTRACT_IS_NULL(1100004,"机构联系人不能为空"),
    ORGAN_ADDRESS_IS_NULL(1100005,"机构地址不能为空"),
    ORGAN_PHONE_IS_NULL(1100006,"机构联系电话不能为空"),
    ORGAN_ADD_IS_NULL(1100007,"新增信息不能为空"),
    ORGAN_PARENT_NOT_EXIST(1100008,"父级节点不存在"),
    ORGAN_PARENT_NOT_ALLOWED(1100009,"父级节点不允许为省市"),
    ORGAN_NESSARY_IS_NULL(1100010,"必填信息不能为空"),
    ORGAN_NOT_ALLOWED_MODIFY(1100011,"省市区行政区域不可修改"),
    ORGAN_HAS_CHILD(1100012,"机构下有子机构，请先删除子机构"),
    ORGAN_EXIST(1100013,"该节点下该机构名称已经存在"),
    ORGAN_CAN_NOT_ADD(1100010,"行政区域不可新增"),
    ORGAN_NOT_EXIST(1100015,"机构不存在"),
    COMPANY_EXIST(1100016,"机构名称已经存在")
    ;


    private int code;
    private String message;

    OrganMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
